package com.hmy.park.service.impl;

import com.hmy.park.domain.HmyPhouse;
import com.hmy.park.mapper.PhouseMapper;
import com.hmy.park.service.PhouseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author ljy
 * @Date 2024/1/30 17:40
 * @description: 栏舍管理模块实现
 * @Title: PhouseServiceImpl
 * @Package com.hmy.park.service.impl
 */
@Service
public class PhouseServiceImpl implements PhouseService {
    @Resource
    private PhouseMapper phouseMapper;

    @Override
    public List<HmyPhouse> findPhouseList(HmyPhouse hmyPhouse) {
        return phouseMapper.findPhouseList(hmyPhouse);
    }

    @Override
    public Integer savePhouse(HmyPhouse hmyPhouse) {
        return phouseMapper.savePhouse(hmyPhouse);
    }

    @Override
    public Integer delPhouse(Long phouseId[]) {
        return phouseMapper.delPhouse(phouseId);
    }

    @Override
    public Integer updatePhouse(HmyPhouse hmyPhouse) {
        return phouseMapper.updatePhouse(hmyPhouse);
    }
}
